{% extends 'learning_logs/base.html' %}
{% block content %}
    <p>Topics:{{ topic }}</p>
    <a href="{% url 'learning_logs:new_entry' topic.id %}">Add a new entry</a>
    <ul>
        {% for entry in entries %}
            <li>
                <p>{{ entry.date_added | date:'M d,Y H:i' }}</p>
                <p></p><a href="{% url 'learning_logs:edit_entry' entry.id %}">Edit</a></p>
                <p>{{ entry.text | linebreaks }}</p>
            </li>
        {% empty %}
            <li>当前主题没有任何的条目</li>
        {% endfor %}
    </ul>
{% endblock content %}
